
<!-- 增加作品***完结 -->
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html>

<html>

<head>
<meta charset="utf-8">
<link
	href="${pageContext.request.contextPath}/css/designer/addDesign_errorlabel.css"
	rel="stylesheet">
<link
	href="${pageContext.request.contextPath}/css/bootstrap/bootstrap.min.css"
	rel="stylesheet">
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/common/jquery-1.9.1.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/common/jquery.validate.min.js"></script>
<script type="text/javascript"
	src="${pageContext.request.contextPath}/js/designer/addDesign.js"></script>
<title></title>
</head>

<body>
	<c:if test="${msg!=null }">
	<script type="text/javascript">
	alert("${msg}");
	</script>
	</c:if>
	<form action="${pageContext.request.contextPath}/design/addDesign.do"
		method="post" enctype="multipart/form-data" class="addForm" style="margin:0">
		<div class="addPhoto" style="height: 108px;">
			<span style="float: left;">作品图：&nbsp;&nbsp;</span>
			<div class="image">
				<div class="preview">
					<img class="imghead" border=0 src="" width="180px" height="180px" />
					<span class="select">上传效果图</span>
				</div>
				<input type="file" name="effect_pic" class="tohide"
					style="display: none;" />
			</div>
			<div class="image">
				<div class="preview">
					<img class="imghead" border=0 src="" width="180px" height="180px" />
					<span class="select">上传款式图</span>
				</div>
				<input type="file" name="garment_fashion_pic" class="tohide"
					style="display: none;" />
			</div>
			<div class="image">
				<div class="preview">
					<img class="imghead" border=0 src="" width="180px" height="180px" />
					<span class="select">上传工艺图</span>
				</div>
				<input type="file" name="artwork_pic" class="tohide"
					style="display: none;" />
			</div>
			<div class="image">
				<div class="preview">
					<img class="imghead" border=0 src="" width="180px" height="180px" />
					<span class="select">上传面料图</span>
				</div>
				<input type="file" name="fabrics_pic_pic" class="tohide"
					style="display: none;" />
			</div>
			<div class="image">
				<div class="preview">
					<img class="imghead" border=0 src="" width="180px" height="180px" />
					<span class="select">上传成衣图</span>
				</div>
				<input type="file" name="clothes_pic" class="tohide"
					style="display: none;" />
			</div>
			<div class="image">
				<div class="preview">
					<img class="imghead" border=0 src="" width="180px" height="180px" />
					<span class="select">上传其他图</span>
				</div>
				<input type="file" name="other_pic" class="tohide"
					style="display: none;" />
			</div>

		</div>
		<div class="addPhoto"  style="height: 38px;">
			<span>作品名称：</span> <input type="text" class="input" name="name" />
		</div>
		<div class="addPhoto">
			<span>分类：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <select
				name="big_code" id="big_class" style="width: 204px">
				<option value="-1">请选择大类</option>

				<c:forEach items="${big_class}" var="big_class">
					<option value="${big_class.code}">${big_class.name}</option>
				</c:forEach>

			</select> <select id="middle_class" style="width: 204px">
				<option value="-1">请选择中类</option>
			</select> <select name="type_code" id="small_class" style="width: 204px">
				<option value="-1">请选择小类</option>
			</select>
		</div>
		<div class="addPhoto"  style="height: 38px;">
			<span>风格：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <select
				name="style_code">
				<c:forEach items="${style}" var="style">
					<option value="${style.code}">${style.value}</option>
				</c:forEach>
			</select>
			<span>款式：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <select
				name="pattern_code">
				<c:forEach items="${pattern}" var="pattern">
					<option value="${pattern.code}">${pattern.value}</option>
				</c:forEach>
			</select>
		</div>
		<div class="addPhoto"  style="height: 38px;">
			<span>专辑：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <select
				name="special_code">
				<c:forEach items="${special}" var="special">
					<option value="${special.id}">${special.name}</option>
				</c:forEach>
			</select>

		</div>
		<div class="addPhoto"  style="height: 38px;">
			<span>面料：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <select name=""
				id="parent_class" style="width: 204px">
				<option value="-1">请选择大类</option>
				<c:forEach items="${fabric_class}" var="fabric_class">
					<option value="${fabric_class.code}">${fabric_class.name}</option>
				</c:forEach>
			</select> <select name="fabric_code" id="child_class" style="width: 204px">
				<option value="-1">请选择小类</option>
			</select>
		</div>
		<div class="addPhoto"  style="height: 38px;">
			<span>色彩：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <input
				type="text" class="input" name="color" placeholder="如‘蓝色’" />
		</div>

		<div class="addPhoto" >
			<span>描述：</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			<textarea name="description" style="width: 242px; height: 80px;"></textarea>
		</div>
		<div class="addPhoto" style="position: relative; left: 14px;">
			<input type="hidden" name="designer_id" value="${designer_id}">
			<input class="btn btn-info" type="submit" value="提交" style="margin-top: -15px;">
		</div>

	</form>
</body>


</html>
